﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using control.Biz;

namespace control.Dal
{
    class DalQuyen
    {
        internal static control.Biz.BizQuyen GetByMa(string p)
        {
            var quyens = from q in DalCommon.SachDB.Quyens
                         where q.MaQuyen == p
                         select new BizQuyen(q.MaQuyen,q.TenQuyen);
                         
            return quyens.FirstOrDefault<BizQuyen>();
        }
    }
}
